<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="image/x-icon" href="<?=Q::ini('custom_system/base_url')?>favicon.png" rel="icon"/>
<title>
	<?=${Q::ini('app_config/APPID') . '_current_nca'}['namespace']?> - 
	<?=${Q::ini('app_config/APPID') . '_current_nca'}['controller']?> - 
	<?=${Q::ini('app_config/APPID') . '_current_nca'}['action']?> - 
	运营系统 </title>
<link type="text/css" href="<?=Q::ini('custom_system/base_url')?>css/colorbox.css" rel="stylesheet" />
<link href="<?=Q::ini('custom_system/base_url')?>css/main.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="<?=Q::ini('custom_system/base_url')?>css/jq.ui.css" rel="stylesheet" />
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jq.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jq.ui.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jq.colorbox.js"></script>
<script src="<?=Q::ini('custom_system/base_url')?>js/jquery.slimscroll.min.js" type="text/javascript"></script>
</head>
<body>
<div id="div_body">
	<div id="header">
		<div class="clear"></div>
		<div class="clear"></div>
		<div id="main_nav">
		<? include(Q::ini('custom_system/elements_dir') . 'navigation_element.php');?>
		</div>
	</div>
	<div id="content">
		<div id="sidebar"><? include(Q::ini('custom_system/elements_dir') . 'sidebar_element.php');?></div>
		<div id="main_content">
			<div class="main_box">
				<div class="main_box_h">
					<div class="main_box_hl"></div>
					<div class="main_box_hr"></div>
					<div class="main_box_hc"><h1><?=${Q::ini('app_config/APPID') . '_current_nca'}['namespace']?> - <?=${Q::ini('app_config/APPID') . '_current_nca'}['controller']?> - <?=${Q::ini('app_config/APPID').'_current_nca'}['action']?></h1></div>
				</div>
				<div class="main_box_b">
					<div class="main_box_bi">
					<?php $this->_block('contents');?><?php $this->_endblock();?>
					</div>
				</div>
				<div class="main_box_f">
					<div class="main_box_fl"></div>
					<div class="main_box_fr"></div>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">
		<div id="footer_line"></div>
		<div>
			<p>
				系统汇率：
				<?foreach ($currency = Currency::find('is_default<>1')->asArray()->getAll() as $k => $c):?>
				<span><?=$c['desc'] . '（' . $c['code'] . '）  ' . $c['rate'] . ((count($currency) == $k+1) ? '' : ' | ')?></span>
				<?endforeach;?>
			</p>
		</div>
	</div>
	<a href="#" class="gui-screen-top" style="display: block;" id="back_to_top"><s></s><b></b>返回顶部</a>
<script type="text/javascript">
$(function(){
	$("#dialog_browser").dialog({autoOpen:false, modal:true}); 
	$("#news_unread_count").colorbox({width:"50%", height:"60%", iframe:true});
	$(window).scroll(function(){
		var st = $(document).scrollTop();
		if (st > 0)
		{
			$("#back_to_top").show();
		}
		else
		{
			$("#back_to_top").hide();
		}
	});
	$(window).scroll();
	$("#back_to_top").click(function(){
		$("html body").animate({"scrollTop":0}, 200);
	});
	if(navigator.userAgent.indexOf("Win") != '-1')
	{
		if(!($.browser.webkit || $.browser.mozilla))
		{
			$("#dialog_browser").dialog("open");
		}
	}
});
</script>
</div>
<div id="dialog_browser" align="center">温馨提示：请使用谷歌或者火狐浏览器！<br /><br />请点击下载链接：<a href='/Firefox Setup 13.0.1.exe' target='_blank' ><font color="red">火狐下载地址</font></a></div>
</body>
</html>
